package anc.tankshooter.database;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class DatabaseHelper extends SQLiteOpenHelper {

	private Context mContext;
	
	public DatabaseHelper(Context context, String name) {
		super(context, name, null, 3);
		this.mContext=context;
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL("CREATE TABLE [highscores] ("+
				  "[id] INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "+
				  "[name] TEXT NOT NULL, "+
				  "[level] INTEGER, "+
				  "[score] INTEGER, "+
				  "[normal_tank] INTEGER,"+ 
				  "[fast_tank] INTEGER, "+
				  "[heavy_tank] INTEGER, "+
				  "[boss_tank] INTEGER,[time] INTEGER )");
	}
	
	@Override
	public void onOpen(SQLiteDatabase db) {
		super.onOpen(db);
		
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
	}

}
